import javax.xml.crypto.dsig.Transform;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static boolean Continuous(int[] arr) {
        int i,j;
        int K = 0;
        for(i = 0;i < arr.length - 2;i++) {
            K = 0;
            for(j = i;j < i + 3;j++) {
                if(arr[j] % 2 == 0) {
                    K = 1;
                    break;
                }
            }

            if(K == 0)
                return true;
        }
        return false;
    }
    public static void main8(String[] args) {
        int[] arr1 = {1,2,3,5,7,8,9};
        int[] arr2 = {1,2,3,4,5,6,7};
        System.out.println(Continuous(arr1));
        System.out.println(Continuous(arr2));
    }
    ///////////////
    public static int Find_More(int[] arr) {
        int K =0;
        int i,j;
        int More = 0;
        for(i = 0;i < arr.length;i++) {
            More = 0;
            K = arr[i];
            for(j = 0;j < arr.length;j++) {
                if(arr[j] == K && i != j) {
                    More++;
                }
            }
            if(More > arr.length/2)
                break;
        }
        return K;
    }
    public static void main7(String[] args) {
        int[] arr1 = {1,2,2,3,2,5,2,6,2};
        int[] arr2 = {4,5,4};
        int[] arr3 = {0,0,1,1,222,3,0};
        System.out.println("arr1出现最多的数字为："+Find_More(arr1));
        System.out.println("arr2出现最多的数字为："+Find_More(arr2));
        System.out.println("arr3出现最多的数字为："+Find_More(arr3));
    }
    ///////////////
    public static int Find_One(int[] arr) {
        int K = 0;
        int i,j;
        int Key[] = new int[arr.length];
        for(i = 0;i < arr.length;i++) {
            K = arr[i];
            int flag = 0;
            for(j = 0;j < arr.length;j++) {
                if(arr[j] == K && i != j) {
                    flag = 1;
                    break;
                }
            }
            if(flag == 0)
                break;
        }
        return K;
    }
    public static void main6(String[] args) {
        int[] arr1 = {1,2,1,2,5};
        int[] arr2 = {4,1,2,1,2};
        int[] arr3 = {1,2,9,2,1};
        System.out.println("arr1中只出现一次的数是->"+Find_One(arr1));
        System.out.println("arr2中只出现一次的数是->" + Find_One(arr2));
        System.out.println("arr3中只出现一次的数是->" + Find_One(arr3));
    }
    ///////////////
    public static String Find(int[] arr,int K) {
        int i,j;
        for(i = 0;i < arr.length;i++) {
            for (j = i + 1;j < arr.length;j++) {
                if(arr[i]+arr[j]==K) {
                    return "["+i+","+j+"]";
                }
            }
        }
        return null;
    }
    public static void main5(String[] args) {
        int[] nums = {2,7,11,15};
        Scanner scan = new Scanner(System.in);
        int target = scan.nextInt();

        String ret = Find(nums,target);
        if(ret == null)
            System.out.println("数组内不存在两个相加="+target+"的元素");
        else
            System.out.println(ret);
    }
    ///////////////
    public static void Change(int[] arr) {
        int i,j;
        for(i = 0,j = arr.length-1;i < j;i++ , j--) {
            if(arr[i] % 2 == 0) {
                while(arr[j] % 2 != 1) {
                    j--;
                }
                int  tmp = arr[i];
                arr[i] = arr[j];
                arr[j] = tmp;
            }
        }
    }
    public static void main4(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        Change(arr);
        System.out.println(Arrays.toString(arr));
    }
    ///////////////
    public static int Sum(int[] arr) {
        int sum = 0;
        for(int x:arr) {
            sum += x;
        }
        return sum;
    }
    public static void main3(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10};
        System.out.println(Sum(arr));
    }
    ///////////////
    public static void Transform(int[] arr) {
        for(int i = 0;i < arr.length;i++) {
            arr[i] *= 2;
        }
    }
    public static void main2(String[] args) {
        int[] arr = {1,2,3};
        Transform(arr);
        System.out.println(Arrays.toString(arr));
    }
    //////////////
    public static void main(String[] args) {
        int[] arr = new int[100];
        int i = 0;
        for(i = 0;i < 100;i++ ) {
            arr[i] = i+1;
        }

        for(int X :arr) {
            System.out.print(X+" ");
            if(X % 10 == 0)
                System.out.println();
        }
    }
}